Ext.define('DragonApp.store.JsonPConsume', {
    extend: 'Ext.data.Store',

    model: 'DragonApp.model.Consume',

    alias: 'store.jsonPConsumeStore',

    proxy: {

        url: DragonApp.ux.config.Config.getUrl('/index/Consume/queryBasicInfo/'),
        callbackKey: 'callback',
        type: 'jsonp',

        reader: {
            type: 'json',
            rootProperty: 'rows',
            totalProperty: 'total'
        },
        listeners: {
            exception: function(proxy, response, operation) {
                DragonApp.util.Msg.showToast(response);
            }
        }
    },
    autoLoad: false
});